package com.open.capacity.paper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.PaperRecordInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liangd
 * @since 2021-02-23 16:20
 */
@Mapper
public interface PaperRecordInfoDao extends BaseMapper<PaperRecordInfo> {

    int insertBatch(List<PaperRecordInfo> infoList);

    int deletePaperRecordInfo(@Param("pareid") Integer pareid, @Param("userid") Long userid);

    List<PaperRecordInfo> findPaperRecordInfo(@Param("pareid") Integer pareid, @Param("userid") Long userid);

    int updateByIds(@Param("papeid") Integer papeid, @Param("userid") Long userid, @Param("quesid") Integer quesid, @Param("optnid") Integer optnid);
}
